<?php

namespace App\Modules\Apicrzs\Services\System;

use App\Modules\Apicrzs\Entities\AgreementModel;
use App\Modules\Apicrzs\Services\BaseServices;

/**
 * 协议
 */
class AgreementService extends BaseServices
{
    public function __construct(AgreementModel $model)
    {
        $this->model = $model;
    }
    public function getAgreementByType($param){
        $type = $param['type'];
       return $this->model->where('type',$type)->first(['title','content']);
    }
}
